package com.hzcc.hzccblog.module.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzcc.hzccblog.module.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 早睡蛋
 * @Date 2022/7/11 20:45:49
 * @Desc:用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
public class User extends BaseEntity {

    @ApiModelProperty(value = "用户名")
    @TableId("user_name")
    private String userName;

    @ApiModelProperty(value = "邮箱")
    @TableField("user_email")
    private String userEmail;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "盐值")
    @TableField("salt")
    private String salt;
}
